# _*_ coding: UTF-8 _*_
# @Time     :2023-11-20 15:16
# @Author   :Yunlian Zeng
# @File     :notice.py

from class_202310_chuanxin.testSmeOA.pages.login import Login

class Notice(Login):
    def notice(self, opmode,name,pid,folder_name,admin='',write='',read='',folder_list='',sort='',is_del='0',remark=''):
        url = 'http://localhost/smeoa/notice_folder/save'
        datas = {'id':'',
                 'opmode':opmode,
                 'admin':admin,
                 'write':write,
                 'read':read,
                 'folder_list':folder_list,
                 'name':name,
                 'folder_name':folder_name,
                 'pid':pid,
                 'sort':sort,
                 'is_del':is_del,
                 'remark':remark}
        return self.s.post(url, data=datas)

if __name__ == '__main__':
    notice = Notice()
    notice.login('admin','admin')
    r =notice.notice('add','1120-2239','69','学校')
    print(r.text)